projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd798d5
)
aspect frame: Use an element name
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 5 Nov 2015 17:53:46 +0000
(12:53 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 5 Nov 2015 17:56:16 +0000
(12:56 -0500)
gtk/gtkaspectframe.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaspectframe.c
b/gtk/gtkaspectframe.c
index 84168df14dcabeb495acecc3e4656d5116dc76fe..07b8f809f63713fd143378e24d79065b8642a9e7 100644
(file)
--- a/
gtk/gtkaspectframe.c
+++ b/
gtk/gtkaspectframe.c
@@
-39,6
+39,10
@@
* derives from #GtkFrame, so it can draw a label and
* a frame around the child. The frame will be
* “shrink-wrapped” to the size of the child.
+ *
+ * # CSS nodes
+ *
+ * GtkAspectFrame uses a CSS node with name frame.
*/
#include "config.h"
@@
-129,6
+133,8
@@
gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
P_("Force aspect ratio to match that of the frame's child"),
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+
+ gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "frame");
}
static void